# coding=utf-8

'''
最好使用迅雷下载

--------------------------------------------------------
ts文件已经下载好

xxx.m3u8
    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:13
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="e:/20180125/key.key"
    #EXTINF:12.5,
    e:/20180125/GBDYO3576000.ts
    #EXTINF:12.5,
    e:/20180125/GBDYO3576001.ts
    #EXTINF:12.5,
    e:/20180125/GBDYO3576002.ts

ffmpeg -allowed_extensions ALL -i HdNz1kaz.m3u8 -c copy new.mp4

windows : copy /b D:\download_video\111\*.ts D:\download_video\111.ts


-----------------------------------------------------

ts文件没有下载

xxx.m3u8
    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:13
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="http://www.example.com/20180125/key.key"
    #EXTINF:12.5,
    http://www.example.com/20180125/GBDYO3576000.ts
    #EXTINF:12.5,
    http://www.example.com/20180125/GBDYO3576001.ts
    #EXTINF:12.5,
    http://www.example.com/20180125/GBDYO3576002.ts


ffmpeg -i HdNz1kaz.m3u8 -c copy new.mp4

ffmpeg -i list.m3u8 -c copy -bsf:a aac_adtstoasc ALL.mp4

https://drm.fptplay.net/secure/vod_decrypt2?token=eyJoYXNoX3ZhbHVlIjogImRiMGM3YjExNmVkNjRhMmE4ZGQ0NTg4NWEwMDc1M2VkIiwgInZpZGVvX2lkIjogIjU1NzgyZTgzMTdkYzEzMjg2NzljZjJkMCIsICJzZXJ2ZXJfdGltZSI6IDE0NTYyMTc2ODUsICJ2YWxpZF9taW51dGVzIjogNzIwfQ"


'''